package com.lyrcsoft.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * 开发人员定义的事件发布器
 *
 * <p>
 * 由refresh()方法的registerListeners();去获取。
 * </p>
 *
 * @author fujc-dev@qq.com
 * @date 2023/7/11 11:35
 */
@Component
public class MyApplicationListener implements ApplicationListener<MyApplicationEvent> {


	@Override
	public void onApplicationEvent(MyApplicationEvent event) {
		System.out.println("MyApplicationListener:" + event);
	}
}
